<template>
  <div id="app">
    <tab-bar>
      <tab-bar-item link="/home" activeColor="blue">
        <img src="./assets/img/seats_128px_1213402_easyicon.net.jpg" slot="item-icon" />
        <img src="./assets/img/logo.png" slot="item-icon-active" />
        <div slot="item-text">首页</div>
      </tab-bar-item>
      <tab-bar-item link="/category">
        <img src="./assets/img/seats_128px_1213402_easyicon.net.jpg" slot="item-icon" />
        <img src="./assets/img/logo.png" slot="item-icon-active" />
        <div slot="item-text">分类</div>
      </tab-bar-item>
      <tab-bar-item link="/cart">
        <img src="./assets/img/seats_128px_1213402_easyicon.net.jpg" slot="item-icon" />
        <img src="./assets/img/logo.png" slot="item-icon-active" />
        <div slot="item-text">购物车</div>
      </tab-bar-item>
      <tab-bar-item link="/profile">
        <img src="./assets/img/seats_128px_1213402_easyicon.net.jpg" slot="item-icon" />
        <img src="./assets/img/logo.png" slot="item-icon-active" />
        <div slot="item-text">我的</div>
      </tab-bar-item>
    </tab-bar>
    <router-view></router-view>
  </div>
</template>

<script>
import TabBar from "./components/tabbar/Tabbar.vue";
import TabBarItem from "./components/tabbar/TabbarItem.vue";
export default {
  name: "App",
  components: {
    TabBar,
    TabBarItem
  }
};
</script>

<style>
/* 动态引入文件 这里@是特殊写法 */
@import "./assets/css/base.css";
</style>
